package com.example.kaogong.sys.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 课程资料
 * </p>
 *
 * @author    
 * @since 2022-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_course_resourse")
@ApiModel(value="CourseResourse对象", description="课程资料")
public class CourseResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程资料编号")
    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    @NotNull(message = "课程编号不能为空")
    @ApiModelProperty(value = "课程编号")
    private Integer courseId;

    @NotBlank(message = "资料名称不能为空")
    @ApiModelProperty(value = "资料名称")
    private String resourceName;

    @NotBlank(message = "资料url不能为空")
    @ApiModelProperty(value = "资料保存地址")
    private String resourcePath;


}
